//
//  HMStatusViewModel.swift
//  sina
//
//  Created by Kent on 16/9/27.
//  Copyright © 2016年 Ming. All rights reserved.
//

import UIKit

class HMStatusViewModel: NSObject {
    
    var iconUrl: URL?
    
    var status: HMStatus? {
        didSet {
            dealHeadURL()
        }
    }
    
    private func dealHeadURL() {
        let urlString = status?.user?.avatar_large ?? "0"
        iconUrl = URL(string: urlString)
    }
}
